#pragma once

#include <QWidget>
#include <QMenu>
#include <QAction>
#include <QVBoxLayout>
#include <QMenuBar>

#include "ui_CMenuBar.h"

class CMenuBar : public QWidget
{
	Q_OBJECT

public:
	CMenuBar(QWidget* parent = nullptr);
	~CMenuBar();


protected:
	bool eventFilter(QObject* obj, QEvent* event) override;


private:
	void setCentralWidget(QWidget* w);
	QMenuBar* getMenuBar();

private:
	Ui::CMenuBarClass ui;

	QMenuBar* m_menuBar;
	QWidget* m_central;
	QVBoxLayout* m_vbox;

public:
	QMenu* m_pFileMenu = nullptr;
	// QAction* m_pActColorOption = nullptr;
	QAction* m_pActMenuOpen = nullptr;
	QAction* m_pActExit = nullptr;

};
